﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 建造者模式
{
    class Program
    {
        static void Main(string[] args)
        {
            {
                Console.WriteLine("******************************");
                AbstractBuilder builderFord = new BuilderFord();
                builderFord.Engine();
                builderFord.Wheels();
                builderFord.Light();
                builderFord.Car();
            }
            {
                Console.WriteLine("******************************");
                AbstractBuilder builderBYD = new BuilderBYD();
                builderBYD.Engine();
                builderBYD.Wheels();
                builderBYD.Light();
                builderBYD.Car();
            }

            {
                Console.WriteLine("******************************");
                AbstractBuilder builderBYD = new BuilderBYD();
                Director director = new Director(builderBYD);
                director.GetCar();
            }
            Console.Read();
        }
    }
}
